Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MWPW-157555: Remove useless logic and putting import commerce.js top. #2906

Merged
merged 6 commits into from
Sep 30, 2024

Conversation

Copy link
Contributor

aem-code-sync bot commented Sep 18, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@seanchoi-dev seanchoi-dev added the run-nala Run Nala Test Automation against PR label Sep 18, 2024
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.30%. Comparing base (54c3cc0) to head (c881532).
Report is 39 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2906      +/-   ##
==========================================
+ Coverage   96.24%   96.30%   +0.05%     
==========================================
  Files         236      242       +6     
  Lines       54233    54979     +746     
==========================================
+ Hits        52196    52946     +750     
+ Misses       2037     2033       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seanchoi-dev seanchoi-dev marked this pull request as ready for review September 18, 2024 22:56
@seanchoi-dev seanchoi-dev requested a review from a team as a code owner September 18, 2024 22:56
@seanchoi-dev seanchoi-dev marked this pull request as draft September 18, 2024 22:57
@seanchoi-dev seanchoi-dev marked this pull request as ready for review September 18, 2024 23:01
Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

Copy link
Contributor

@npeltier npeltier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me :) may be some more talkative commit message would be great :)

@seanchoi-dev seanchoi-dev changed the title Mwpw 157555 [Mwpw 157555] Remove useless logic and putting import commerce.js top. Sep 19, 2024
@seanchoi-dev seanchoi-dev changed the title [Mwpw 157555] Remove useless logic and putting import commerce.js top. MWPW 157555: Remove useless logic and putting import commerce.js top. Sep 19, 2024
@seanchoi-dev seanchoi-dev changed the title MWPW 157555: Remove useless logic and putting import commerce.js top. MWPW-157555: Remove useless logic and putting import commerce.js top. Sep 19, 2024
@@ -2,6 +2,7 @@ import {
createTag, getConfig, loadArea, loadScript, loadStyle, localizeLink,
} from '../../utils/utils.js';
import { replaceKey } from '../../features/placeholders.js';
import '../../deps/mas/commerce.js';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? This is also being imported in L427

Copy link
Contributor Author

@seanchoi-dev seanchoi-dev Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we want to start to load this ASAP when merch.js get loaded.
This is what task's description says:
"Remove the related logic and move import of commerce.js to the top."

libs/blocks/merch/merch.js Outdated Show resolved Hide resolved
@yesil
Copy link
Contributor

yesil commented Sep 26, 2024

@seanchoi-dev the following test should be removed.

Merch Block > M@S consumption > maslibs parameter > should load commerce.js via maslibs, it is failing.

Copy link
Contributor

@yesil yesil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will block to prevent accidental merge until the test is fixed and comments are resolved.

@seanchoi-dev
Copy link
Contributor Author

@seanchoi-dev the following test should be removed.

Merch Block > M@S consumption > maslibs parameter > should load commerce.js via maslibs, it is failing.

I removed it.

Copy link
Contributor

@yesil yesil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seanchoi-dev can you provide valid before/after URLs for PSI checks?

Copy link
Contributor

aem-code-sync bot commented Sep 27, 2024

@milo-pr-merge milo-pr-merge bot merged commit 4f829ac into stage Sep 30, 2024
18 checks passed
@milo-pr-merge milo-pr-merge bot deleted the MWPW-157555 branch September 30, 2024 08:10
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 30, 2024
rohitsahu pushed a commit to rohitsahu/milo that referenced this pull request Oct 1, 2024
* stage:
  MWPW-158886: update the way we send arbitrary fields to caas (adobecom#2977)
  MWPW-159028: MAS more technical documents + refactored aem related code (adobecom#2952)
  MWPW-158776 Fix video CLS  (adobecom#2915)
  MWPW-159197 Invoke onReady of standalone gnav when it is rendered adobecom#2962 (adobecom#2963)
  MWPW-159157: Update modal to account for new image size (adobecom#2975)
  Reverts MWPW-157555: Causing prices and CTAs to fail in Safari (adobecom#2987)
  [MWPW-159287 : NALA] Enhance Nala Run Command to Support Feature Branches with with an owner other than 'adobecom' (adobecom#2978)
  [MWPW-158927] Countdown Timer feedbacks incorporated (adobecom#2955)
  [MWPW-159265] Callout text in RTL not properly aligned (adobecom#2974)
  Add support for Jarvis through Unav and make appID of notifications configurable (adobecom#2969)
  MWPW-159236 Fix duplicate percent in donut chart tooltip (adobecom#2968)
  MWPW-144360 Prototype pollution tag selector (adobecom#2967)
  [MWPW-153616] Update 404 links in region selector (adobecom#2956)
  MWPW-157555: Remove useless logic and putting import commerce.js top. (adobecom#2906)

# Conflicts:
#	libs/deps/mas/mas.js
#	libs/deps/mas/merch-card.js
#	libs/deps/mas/plans-modal.js
#	libs/features/mas/web-components/src/global.css.js
jenssingler pushed a commit to jenssingler/milo that referenced this pull request Oct 7, 2024
…adobecom#2906)

* remove useless logic and putting import '../../deps/mas/commerce.js'; top.

* removing unsed test that failing

* putting commerceLib on top

* Revert "putting commerceLib on top"

This reverts commit eae08d2.

* remove code that is not needed anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commerce Ready for Stage run-nala Run Nala Test Automation against PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants